
  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list"style="padding: 20px 30px 0 0;">
     <div class="layui-form-item">
      <label class="layui-form-label">分类</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <select id="categoryId" name="categoryId" lay-verify="required">
            <option value="">请选择分类</option>
          </select>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">商品名称</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="pname" value="{{ d.params.title || '' }}" lay-verify="required" placeholder="请输入商品名称" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">价格</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="unitPrice" value="{{ d.params.author || '' }}" lay-verify="required" placeholder="请输入价格" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
        <div class="layui-form-item">
      <label class="layui-form-label">库存</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="stock" value="{{ d.params.author || '' }}" lay-verify="required" placeholder="请输入库存" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">详情</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <textarea name="details" lay-verify="required" style="width: 400px; height: 150px;" autocomplete="off" class="layui-textarea">
            {{ d.params.content || '' }}
          </textarea>
        </script>
      </div>
    </div>

    <script type="text/html" template>
      <input type="text" name="id" value="{{ d.params.id || '' }}">
    </script>
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
      </div>
    </div>
  </div>
